dnl -*- Autoconf -*-
dnl
dnl   configuration script for Guile-Squee
dnl   Process this file with autoconf to produce configure.
dnl

define(GUILE_SQUEE_CONFIGURE_COPYRIGHT,[[


Copyright (C) 2015
David Pirotte <david at altosw dot be>

This file is part of Guile-Squee.

Guile-Squee is free software: you can redistribute it and/or modify it
under the terms of the GNU General Lesser Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Guile-Squee is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with Guile-Squee.  If not, see
<http://www.gnu.org/licenses/>.

]])

AC_PREREQ(2.61)

AC_INIT([guile-squee], [0.1.0], [guile-user at gnu dot org])

AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
dnl Use `serial-tests' so the output `check-guile' is not hidden
dnl (`parallel-tests' is the default in Automake 1.13.)
dnl `serial-tests' was introduced in Automake 1.12.
AM_INIT_AUTOMAKE([1.12 gnu -Wall -Werror -Wno-portability -Wno-syntax \
  color-tests serial-tests foreign])
AM_MAINTAINER_MODE([enable])
AM_SILENT_RULES([yes])

AC_COPYRIGHT(GUILE_SQUEE_CONFIGURE_COPYRIGHT)
AC_CONFIG_SRCDIR([squee])

GUILE_PKG([2.2 2.0])
GUILE_PROGS([2.0.11])
GUILE_PREFIX_DIR
GUILE_SITE_DIR
GUILE_GLOBAL_SITE_DIR
GUILE_SITE_CCACHE_DIR

PKG_CHECK_MODULES(
  [LIBPQ],
  [libpq >= 9.4.4])

AC_CONFIG_FILES(
	[env],
	[chmod +x env])
AC_CONFIG_FILES([
	meta/guile-squee-1.0.pc
	Makefile
	doc/Makefile])
AC_OUTPUT
